import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.LinkedList;

public class Main {
    public static void main(String[] args) {
        int i=0;
        PrintStream[] streams={System.out,System.err};
        LinkedList<Runnable> runnables=new LinkedList<>();
        for(String arg:args){
            runnables.add(()->streams[i% streams.length].println(arg));
        }
        for (Runnable runnable:runnables){
            runnable.run();
        }
    }
}